﻿<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <link rel="stylesheet" href="~/Themes/RongJi/Style/plugins/bootflat-2.0.3/css/site.min.css">
    <link rel="stylesheet" href="~/Themes/RongJi/Style/base/css/common.css?v=3">
    <link rel="stylesheet" href="~/Themes/Common/assert/plugins/sweetalert-1.0/lib/sweet-alert.css">
    <title>@RenderSection("title", required: false)</title>
    @RenderSection("header", required: false)
</head>
<body>
    <div>
        <!--Begin Header-->
        <header class="pageHeaderMini">
            <img src="~/Themes/RongJi/Style/base/imgs/minitop_bg.png" style="width:100%;height:auto">
            <a href="javascript:window.history.go(-1)" class="goback">返回</a>
            <span class="pageTitle">
                @RenderSection("pagetitle", required: false)
            </span>
        </header>
        <!--End Header-->
        @RenderBody()


        <!--Begin Footer-->
        <footer>
            <div class="innerwrapper">
                <div class="footer_bg">
                    <div class="footer_bg_top">
                        <img src="~/Themes/RongJi/Style/base/imgs/footer_bg_top.png">
                    </div>
                    <div class="footer_bg_body">
                        <img src="~/Themes/RongJi/Style/base/imgs/footer_bg.png">
                        <nav>
                            <ul>
                                <li id="home"><a href="~/home"><img id="homeImg" src="~/Themes/RongJi/Style/base/imgs/f1.png" alt="首页"></a></li>
                                <li id="category"><a href="~/Sort/Categorylist"><img id="categoryImg" src="~/Themes/RongJi/Style/base/imgs/f2.png" alt="分类"></a></li>
                                <li id="myaccount"><a href="~/myaccount/home"><img id="myaccountImg" src="~/Themes/RongJi/Style/base/imgs/f3.png" alt="个人中心"></a></li>
                                <li id="search"><a href="~/Product/ProductList"><img id="searchImg" src="~/Themes/RongJi/Style/base/imgs/f4.png" alt="搜索"></a></li>
                            </ul>
                        </nav>
                        <div class="shopcart_icon">
                            <span>购物车</span>
                            <a href="~/Purchase/ShoppingCart">
                                <div class="cart_badge">
                                    <img src="~/Themes/RongJi/Style/base/imgs/shopcart_empty.png">
                                    <em class="badge"></em>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </footer>
        <!--End Footer-->
    </div>

    <script type="text/javascript">
        //隐藏底部菜单
        document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
            WeixinJSBridge.call('hideToolbar');
        });
    </script>
    <!--End footer-->
    <!-- JS files.-->
    <script src="~/Themes/RongJi/Style/base/js/jquery-1.10.1.min.js"></script>
    @*<script type="text/javascript" src="~/Utility/jquery.mobile-1.3.2.min.js"></script>*@
    <script src="~/Utility/pages/iscroll.js"></script>
    <script src="~/Themes/RongJi/Style/plugins/bootflat-2.0.3/js/bootflat.min.js"></script>
    <script type="text/javascript" src="~/Utility/pages/jquery.cookie.js"></script>
    <script type="text/javascript" src="~/Utility/pages/pg_common.js" charset="gb2312"></script>
    <script type="text/javascript" src="~/Utility/pages/pg_global.js"></script>

    <script src="~/Themes/Common/assert/plugins/sweetalert-1.0/lib/sweet-alert.js" charset="gb2312"></script> 
    <!-- InstanceBeginEditable name="scriptSection" -->
    <!-- InstanceEndEditable -->
    @RenderSection("footer", required: false)

    <script type="text/javascript">
        $(function () {
            KevinShop.Common.ShoppingCart.RefreshTotalQty();

            var total = KevinShop.Common.ShoppingCart.TotalQty;
            if (total > 0) {
                $(".cart_badge .badge").html(total);
            }
            else {
                $(".cart_badge .badge").html("");
            }
        });
    </script>

</body>
<!-- InstanceEnd -->
</html>
